package com.xiaoxi.exam.bean.errorcode;

import cn.xinzhili.xutils.core.Code;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum UserErrorCode implements Code {

  CODE_USED(801, "code used"),
  CODE_INVALID(802, "code invalid"),
  USER_NOT_EXIST(803, "user not exist"),
  MOBILE_BINDED(804, "mobile has been binded"),
  VERIFY_CODE_ERROR(805, "verify code error"),
  VERIFY_CODE_SEND_FAILED(806, "verify code send failed"),
  MOBILE_ERROR(807, "mobile number error"),
  REGISTER_FAILED(808, "account check failed!"),
  ACCOUNT_NOT_SET(809, "未绑定TOEFL账号");

  private int code;
  private String description;

}
